package NProfessor;

import java.awt.BorderLayout;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import java.awt.GridLayout;

public class ProfessorCapsulationLv1 extends JPanel{
	private JTextField tf1;
	private JTextField tf2;
	private JTextField tf3;
	private JTextField tf4;
	private JTextField tf5;
	private JTextField tf6;
	private JTextField tf7;
	private JTextField tf8;
	
	public ProfessorCapsulationLv1() {
		
		setLayout( new BorderLayout( 0, 0 ));
		
		//     * TOP *
		makeTopPanel();
		
		
		//     * CENTER *
		makeCenterPanel();

		//        * BOTTOM *
		makeBottomPanel();
		
	} //ProfessorCapsulationLv1()
	
	
	
	private void makeTopPanel(){
		JPanel top = new JPanel();
		JLabel nlb1 = new JLabel("교수 개인정보 입력창");    // JLable( "ViewText") << 보여질 텍스트 생성
		top.add(nlb1); // top 패널에 nlb1 JLabel을 추가		
		add(top, BorderLayout.NORTH); // ProfessorCapsullationLv1 패널에 top 패널 추가..
	}
	
	private void makeCenterPanel(){
		
	}
	
	public void makeBottomPanel(){
		
		JPanel center = new JPanel();
		add(center, BorderLayout.CENTER);
		center.setLayout(new GridLayout(8, 2, 0, 0));
		
		JLabel nlb2 = new JLabel("성명 :");
		center.add(nlb2);
		
		tf1 = new JTextField();
		center.add(tf1);
		tf1.setColumns(10);
		
		JLabel nlb3 = new JLabel("교수 번호 :");
		center.add(nlb3);
		
		tf2 = new JTextField();
		center.add(tf2);
		tf2.setColumns(10);
		
		JLabel nlb4 = new JLabel("연락처 :");
		center.add(nlb4);
		
		tf3 = new JTextField();
		center.add(tf3);
		tf3.setColumns(10);
		
		JLabel nlb5 = new JLabel("비밀 번호 :");
		center.add(nlb5);
		
		tf4 = new JTextField();
		center.add(tf4);
		tf4.setColumns(10);
		
		JLabel nlb6 = new JLabel("집 주소 :");
		center.add(nlb6);
		
		tf5 = new JTextField();
		center.add(tf5);
		tf5.setColumns(10);
		
		JLabel nlb7 = new JLabel("사무실 주소 :");
		center.add(nlb7);
		
		tf6 = new JTextField();
		center.add(tf6);
		tf6.setColumns(10);
		
		JLabel nlb8 = new JLabel("담당 학과 :");
		center.add(nlb8);
		
		tf7 = new JTextField();
		center.add(tf7);
		tf7.setColumns(10);
		
		JLabel nlb9 = new JLabel("담당 과목 :");
		center.add(nlb9);
		
		tf8 = new JTextField();
		center.add(tf8);
		tf8.setColumns(10);
		JPanel bottom = new JPanel();
		add(bottom, BorderLayout.SOUTH);
		
		JButton btn1 = new JButton("등록");
		bottom.add(btn1);
		
	}

	
}
